package com.dcw.lixb.designmode.observer;

/**
 * @author lixiaobin
 * @date 2020-07-29 15:19:29
 * @desc 描述信息
 */
public class ObserverMain {
    public static void main(String[] args) {
        Subject subject = new Subject();
        new HexObserver(subject);
        new OctalObserver(subject);
        new BinaryObserver(subject);

        System.out.println("First state change : " + 191);
        subject.setState(191);

        System.out.println("Second state change : " + 234);
        subject.setState(234);

    }
}
